const externals = process.env.NODE_ENV === 'development' ? {} : {
  exceljs: 'ExcelJS',
  jszip: 'JSZip'
}

module.exports = {
  productionSourceMap: false,
  configureWebpack: {
    output: {
      library: 'xlsxio',
      libraryExport: 'default'
    },
    externals
  }
}
